<template>
<div>

  <div v-text="this.$route.params.id==='index'?'子页面：首页':'子页面：'+this.$route.params.id"></div>
  <hr>
  <iframe :src="'https://m.jd.com/'" frameborder="0">

  </iframe>
</div>
</template>

<script>
export default {
updated(){
console.log(this.$route.params.id);
},
data(){
  return {
  }
}
}
</script>

<style scoped>
div{
    color: #fffff0;
}

iframe{
  height: 475px;
}
</style>